<template>
  test
  <button @click="toCenter">调转</button>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'Test'
})
</script>
<script lang="ts" setup>
import { useRouter } from 'vue-router'

import request from '@/utils/request'
import srver from '@/utils/server'
const router = useRouter()
const toCenter = async () => {
  const res = await request.get('/xhr/index.json?__timestamp=1662542610854&')
  const res1 = await srver.get('/api/product/getBaseCategoryList')
  console.log(res1)

  console.log(res)
}
</script>

<style lang="less" scoped></style>
